#ifndef MISC_H
#define MISC_H

#include "cocos2d.h"

using namespace cocos2d;

class Misc 
{
public:
	static CCNode* getChildByName(CCNode* pNode, const char* nodeName);
	static std::string getNodeName(CCNode* pNode);
	static void setNodeName(CCNode* pNode, const char* name);
	static void* getUserData(CCNode* pNode);
	static void log(const char* msg);
	static std::string fullPathFile(const char* filename);

	static bool collideNode(CCNode* node1, CCNode* node2);
};

#endif
